package com.java.multipledatasource.spring.vo;

import org.springframework.beans.factory.ObjectFactory;

import javax.swing.*;
import java.math.BigDecimal;
import java.util.Dictionary;
import java.util.HashMap;
import java.util.Map;

import static java.lang.System.*;

/**
 * @author hu
 * @version 1.0
 * @date 2020/12/25 0025 下午 12:06
 * @description
 */
public class Test {
    public static void PerFormOp(String operationName) {

        Map<String, AbstractPerson> map = new HashMap<>(16);

        map.put("1", new AbstractPerson() {
            @Override
            public void calc(int a, int b) {
                out.println("hello");
            }
        });

        map.put("2", new AbstractPerson() {
            @Override
            public void calc(int a, int b) {
                out.println(a - b);
            }
        });
        map.get("2").invoke(10, 8);
    }

    public static void main(String[] args) {
        BigDecimal decimal = new BigDecimal("34.77111111");
        double value = decimal.doubleValue();
        out.println(value);

        out.println(Double.parseDouble("34.77111111"));
    }
}
